package com.aabte.spring.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;

/**
 * @author Daniel
 */
public class ListenerByMethodAnnotation {

    @EventListener(classes = ApplicationEvent.class)
    public void listen(ApplicationEvent event){
        System.out.println("event of ListenerByMethodAnnotation.listen() = " + event);
    }

}
